package com.t.bricks.bussiness.db.mapper.dictionary;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.t.bricks.bussiness.db.entity.dictionary.Dictionary;
import com.t.bricks.bussiness.db.entity.dictionary.base.DictionaryBase;

@Mapper
public interface DictionaryMapper {
	
	/**
	 * 添加
	 * @Param dictionary
	 * @return
	 */
	int add(Dictionary dictionary);

	/**
	 * 删除
	 * @Param sId
	 * @Param iVersion
	 * @return
	 */
	int del(@Param("sId") String sId, @Param("iVersion") Integer iVersion);

	/**
	 * 修改
	 * 注意:当对象的属性值为null时不更新字段
	 * @Param dictionaryBase
	 * @return
	 */
	int edit(DictionaryBase dictionaryBase);
	
}
